'''
square.py - Minimal example of a dynamic remote procedure.

This example implements the handle() function expected by Pillarbox's dispatcher.
Clients can then access the service at e.g.

http://localhost:8000/square/2

You can try this from a browser, or programatically. See client.py for example usage
for both GET and POST.

Author: Eric Saunders
October 2011
'''

def handle(*args, **kwargs):
    return args[0]*args[0]
